package com.ruoyi.system.domain.module.estate;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * 小区房屋套内账户充值/消费记录对象 estate_room_account_record
 *
 * @author ruoyi
 * @date 2024-08-04
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_room_account_record")
public class EstateRoomAccountRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 余额
     */
    private Double account;

    /**
     * 本次充值/使用金额
     */
    private Double usageAmount;

    /**
     * 使用时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 操作人
     */
    private Long sysUserId;

	@TableField(exist = false)
	private String sysUserName;

    /**
     * 0 - 充值   1 - 消费
     */
    private Long rechargeOrUse;

    /**
     * 充值方式 0 - 消费 1 - 现金充值 2 - 扫码充值
     */
    private Long rechargeWay;

	private Integer propertyId;

	@TableField(exist = false)
	private String propertyName;

	private Integer estateId;

	@TableField(exist = false)
	private String estateName;

	private Integer roomId;

	private String roomNo;

	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;

}
